#请注意ASCII和UNICODE字符串的区别
#此实例适用于python2,python3不再有UNICODE
s=input("Input your Chinese name:")
print("Your name is : " +s)
print("type of s is ："+str(type(s)))
l=len(s)
print("Length of your Chinese name in asc codes is:"+str(l))
a=unicode(s,"UTF-8")
l=len(a)
print("I'm sorry we should use unicode char!Characters number of your Chinese \
name in unicode is:"+str(l))

#输出结果：
#Input your Chinese name:
#Press enter to be continued刘先钊
#Your name is : 刘先钊
#Length of your Chinese name in asc codes is:9
